package com.iweb.work;
import com.iweb.test.pig;
public class work5 {
    public static void main(String[] args) {
        pig p=new pig();
        p.setAttack(50);
        p.setColor("白色");
        p.setFidelity(0.8);
        p.setHigh(5);

        System.out.println("一只"+p.getColor()+"的猪，"+"个头"+p.getHigh()+"厘米，"+"攻击力为"+p.getAttack()+"点血，+准确度为"+p.getFidelity());


    }
}
